package com.dasheng.biz.web.controller;

import com.dasheng.biz.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dyl
 * @date 2021-11-21 19:00
 **/
@RestController
@RequestMapping("demo")
public class WebController {

    @Autowired
    private DemoService demoService;

    @GetMapping("test2")
    public String test2() {
        return demoService.test();
    }
    @GetMapping("test")
    public String test() {
        return "Hello World!";
    }
}
